package net.lab1024.sa.base.module.support.soaraction.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.lab1024.sa.base.module.support.soaraction.domain.entity.SoarActionEntity;
import net.lab1024.sa.base.module.support.soaraction.domain.form.SoarActionQueryForm;
import net.lab1024.sa.base.module.support.soaraction.domain.vo.SoarActionVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * chenyuqiang Dao
 *
 * @Author chenyuqiang
 * @Date 2025-09-15 23:07:17
 * @Copyright 1
 */

@Mapper
public interface SoarActionDao extends BaseMapper<SoarActionEntity> {

    /**
     * 分页 查询
     *
     * @param page
     * @param queryForm
     * @return
     */
    List<SoarActionVO> queryPage(Page page, @Param("queryForm") SoarActionQueryForm queryForm);

    int updateByEsid(@Param("esid") String esid,@Param("action") String action,@Param("updateTime") String updateTime);

    void deleteByCreatime(@Param("creatime") String creatime);
}
